package com.mingqijia.gassafety.shared.constant;

import lombok.Getter;
import lombok.RequiredArgsConstructor;


@Getter
@RequiredArgsConstructor
public enum PushServicePeriodLevelEnum {

    //1 每日 2 短信推送 3 微信模版消息 4机器人外呼
    UNEXPIRED(1, "距离服务到期≤30天", "unexpiredSend", "将于"),
    PERIOD(2, "服务到期当天", "periodSend", "于"),
    EXPIRED(3, "服务超期", "expiredSend", "已于");

    private final int code;
    private final String name;
    private final String value;
    private final String verb;

    public static PushServicePeriodLevelEnum getPushServicePeriodLevel(int code) {
        for (PushServicePeriodLevelEnum pushServicePeriodLevelEnum : PushServicePeriodLevelEnum.values()) {
            if (pushServicePeriodLevelEnum.getCode()==(code)) return pushServicePeriodLevelEnum;
        }
        return null;
    }
}
